package com.csap.framework.oauth2.server.service;

import com.csap.framework.annotation.apidoc.Description;
import com.csap.framework.oauth2.server.model.ScopePermissionsModel;
import com.csap.mybatisplus.extension.service.BaseCsapService;
import com.csap.framework.oauth2.server.entity.ScopePermissionsEntity;

import java.util.Set;

/**
 * <p>
 * 作用域权限
 * </p>
 *
 * @author yangchengfu
 * @dateTime 2021-07-25 23:51:30
 */
@Description(value = "作用域权限Service")
public interface ScopePermissionsService extends BaseCsapService<ScopePermissionsEntity, ScopePermissionsModel, Long> {
    /**
     * 查询作用域权限
     *
     * @param scopeId
     * @return
     */
    Set<String> permissions(Long scopeId);
}
